<html>
<head>
<title>300px Body</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #000000}
.style4 {color: #FF0000; font-weight: bold; }
-->
.error_strings{ font-family:Verdana; font-size:10px; color:#660000;}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (300px Body.jpg) -->
<script language="JavaScript" src="../logic/validation/validation.js" type="text/javascript"></script>
<script language="JavaScript" src="../logic/validation/user_update.js" type="text/javascript"></script>
<table width="800" height="173" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
	<tr>
		<td>
			<img src="../images/user_update.gif" width="800" height="69" alt=""></td>
	</tr>
	<tr >
	<td height="64" background="../images/2.gif" style="background-repeat:repeat-y"><table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
	<?php 
	$id=$_GET['edit'];
	$startrow=$_GET['startrow'];
	$tag=$_GET['tag'];
	include'../logic/Classes/db.php';
	
	$x=new Dbconnect();
	
	$con=$x->getConnection();
	
	$result=mysql_query("select emp_reg,u_name,level,status from login where u_name='$id'",$con) or die(mysql_error());  
	?>
	 <?php
	  while($row=mysql_fetch_array($result))
	  {  
           ?>
	
	<form id="myForm" onSubmit="return validate()">
      <tr>
        <td width="114" height="25">&nbsp;</td>
        <td width="146" height="25"><div align="right"><strong>Emp/Reg No </strong><span class="style4">*</span> </div></td>
        <td colspan="5"><input name="txtEmpno" type="text" id="txtEmpno" value="<?php echo $row['emp_reg']; ?>" onBlur="checkregno()">
          <input name="txtId" type="hidden" id="txtId" value="<?php echo $id; ?>">
          <input name="startrow" type="hidden" id="startrow" value="<?php  echo $startrow; ?>">
          <input name="tag" type="hidden" id="tag" value="<?php echo $tag; ?>"></td>
        <td width="201">Required<span class="style1"> <span class="style2">Field </span><span class="style4">* </span></span></td>
      </tr>
	  
      <tr>
        <td>&nbsp;</td>
        <td height="19">&nbsp;</td>
        <td colspan="5"><div id="ajaxDiv1" class="error_strings"></div></td>
        <td>&nbsp;</td>
      </tr>
      

      
      
      <tr>
        <td>&nbsp;</td>
        <td height="22"><div align="right"><strong>Level <span class="style1">* </span></strong></div></td>
        <td colspan="5"><select name="sltLevel" id="sltLevel">
          <option value="User"<?php if ($row['level']=="User") { ?>selected="selected" <?php } ?>>User</option>
          <option value="Admin"<?php if ($row['level']=="Admin") { ?>selected="selected" <?php } ?>>Admin</option>
          <option value="Parent"<?php if ($row['level']=="Parent") { ?>selected="selected" <?php } ?>>Parent</option>
        </select>        </td>
        <td>&nbsp;</td>
      </tr>
      
      
      <tr>
        <td>&nbsp;</td>
        <td height="19">&nbsp;</td>
        <td colspan="5">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="22"><div align="right"><strong>Status <span class="style1">*</span></strong> </div></td>
        <td colspan="5"><select name="sltStatus" id="sltStatus">
          <option value="Active"<?php if ($row['status']=="Active") { ?>selected="selected" <?php } ?>>Active</option>
          <option value="Deactive"<?php if ($row['status']=="Deactive") { ?>selected="selected" <?php } ?>>Deactive</option>
        </select>        </td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="19">&nbsp;</td>
        <td colspan="5"><div id="ajaxDiv" class="error_strings"> </div></td>
        <td>&nbsp;</td>
      </tr>
	  
	  <?php } ?>
      <tr>
        <td>&nbsp;</td>
        <td height="25">&nbsp;</td>
        <td colspan="3"><input type="submit" name="Submit" value="Update" ></td>
        <td width="89"><input type="reset" name="Submit2" value="Back" onClick="backxx()"></td>
        <td width="134">&nbsp;</td>
        <td>&nbsp;</td>
      </tr></form>
    </table></td>
	</tr>
	<tr>
		<td>
			<img src="../images/3.gif" width="800" height="40" alt=""></td>
	</tr>
	
</table>
<!-- End ImageReady Slices -->
</body>
</html>